﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TekaMUD.Engine.Framework;

namespace TekaMUD.Engine
{
	public enum AdjectiveClass 
	{
		Sad,
		Happy,
		Angry,
		Dirty,
		Nice
	}

	public class LanguageTools
	{
		private static Dictionary<AdjectiveClass, string[]> _adjectiveDB;			

		static LanguageTools()
		{
			_adjectiveDB = new Dictionary<AdjectiveClass, string[]>();

			_adjectiveDB[AdjectiveClass.Sad] = new string[] {"Morose", "Melancholy", "Depressing"};
			_adjectiveDB[AdjectiveClass.Happy] = new string[] {"Gleeful", "Ecstatic", "Blissful"};
			_adjectiveDB[AdjectiveClass.Angry] = new string[] {"Enraged", "Barbaric", "Spiteful"};
			_adjectiveDB[AdjectiveClass.Dirty] = new string[] {"Filthy", "Pestilent", "Smutty"};
			_adjectiveDB[AdjectiveClass.Nice] = new string[] {"Pleasant", "Comfortable", "Blissful"};
		}

		public string GetRandomAdjective(AdjectiveClass ac)
		{
			string[] list = _adjectiveDB[ac];
			return list[Randomizer.GetInteger(0, list.Length - 1)];
		}
	}
}
